package top.qitun.common.api.response;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import top.qitun.model.response.RestfulResponse;

/**
 * @author Zhao Junjian
 */
//@Getter
//@Setter
//@NoArgsConstructor
//@ToString(callSuper = true)
//@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class ReturnResponse<T> extends RestfulResponse {
	private static final long serialVersionUID = 7883775815440213351L;
	
	private T data;
	
	public ReturnResponse() {
	}
	
    public ReturnResponse(int code, String message) {
		this.setCode(code);
		this.setMessage(message);
	}
    
    public ReturnResponse(int code, String message,T data) {
		this.setCode(code);
		this.setMessage(message);
		this.data = data;
	}

	public T getData() {
		return data;
	}

	public void setData(T data) {
		this.data = data;
	}
}
